<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:useBean id="dataMgr" class="com.group.dataroom.DataMgr"/>
<jsp:useBean id="dataBean" class="com.group.dataroom.DataBean"/>
<%
String no = request.getParameter("no");
String spage = request.getParameter("page");

dataBean = dataMgr.getData(no); //해당 레코드 한 개 읽기
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body topmargin="20" leftmargin="30" bgcolor="beige">
<jsp:include page="../common/top.jsp" />
	<br><br><br><br>
<table width="500">
	<tr>
		<td align="right">
			<td align="right">
			<input type="button" value="새로쓰기" onclick="location.href='file_add.jsp'">
			<input type="button" value="목록으로" onclick="location.href='file_main.jsp?page=<%=spage %>'">
		</td>
	</tr>
</table>
<table width="500" >
	<tr bgcolor="silver" height = "30">
		<td>작성자 :<%= dataBean.getUser_name()%></td>
		<td>작성일 : <%=dataBean.getWritedate() %></td>
	</tr>
	<tr height="30">
		<td colspan="3">제목 : <%=dataBean.getFilename() %></td>
	</tr>
	<tr height="30">
		<td colspan="3" bgcolor="ace7ff">첨부파일: <%=dataBean.getFdata() %></td>
	</tr>
	<tr>
		<td colspan="3">
			<textarea rows="20" cols="70" style="resize:none;" readonly="readonly"><%=dataBean.getCont()%></textarea>
		</td>
	</tr>
		<hr>
</table> 
</body>
</html>